const fs = require('fs')
const os = require('os')
const path = require('path')
const homedir = os.homedir();
console.log('写入认证',homedir)
fs.writeFileSync(path.resolve(homedir,'.npmrc'),`registry=https://registry.npmjs.org/
always-auth=true
//registry.npmjs.org/:_authToken=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`)
console.log('ss',fs.readFileSync(path.resolve(homedir,'.npmrc')).toString())